gusucode.com > 蓝色机械电子产品企业网站源码 展示类企业织梦手机模板(demo) > 蓝色机械电子产品企业网站源码 展示类企业织梦手机模板(demo)/www2/style/js/public.js
jQuery(function(){jQuery(function(){jQuery(".hoverTag .chgBtn").hover(function(){jQuery(this).parent().find(".chgBtn").removeClass("chgCutBtn");jQuery(this).addClass("chgCutBtn");var cutNum=jQuery(this).parent().find(".chgBtn").index(this);jQuery(this).parents(".hoverTag").find(".chgCon").hide();jQuery(this).parents(".hoverTag").find(".chgCon").eq(cutNum).show();})}) jQuery(function(){jQuery(".clickTag .chgBtn").click(function(){jQuery(this).parent().find(".chgBtn").removeClass("chgCutBtn");jQuery(this).addClass("chgCutBtn");var cutNum=jQuery(this).parent().find(".chgBtn").index(this);jQuery(this).parents(".clickTag").find(".chgCon").hide();jQuery(this).parents(".clickTag").find(".chgCon").eq(cutNum).show();})}) function autFun(){var mW=$(".mBan").width();var mBL=460/218;$(".mBan .slideBox .bd").css("height",mW/mBL);$(".mBan .slideBox .bd img").css("width",mW);$(".mBan .slideBox .bd img").css("height",mW/mBL);} function autFun2(){var mW2=$(".mBan2").width();var mBL2=460/173;$(".mBan2 .slideBox .bd").css("height",mW2/mBL2);$(".mBan2 .slideBox .bd img").css("width",mW2);$(".mBan2 .slideBox .bd img").css("height",mW2/mBL2);} setInterval(autFun,1);setInterval(autFun2,1);$(".mbom_ul li:last").css("border","none");}) jQuery(window).error(function(){return true;});jQuery("img").error(function(){$(this).hide();});